﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Acme.BookStore.Migrations
{
    /// <inheritdoc />
    public partial class CreateGoodsModel : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_goodsModels",
                table: "goodsModels");

            migrationBuilder.RenameTable(
                name: "goodsModels",
                newName: "GoodsModels");

            migrationBuilder.AddPrimaryKey(
                name: "PK_GoodsModels",
                table: "GoodsModels",
                column: "Id");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_GoodsModels",
                table: "GoodsModels");

            migrationBuilder.RenameTable(
                name: "GoodsModels",
                newName: "goodsModels");

            migrationBuilder.AddPrimaryKey(
                name: "PK_goodsModels",
                table: "goodsModels",
                column: "Id");
        }
    }
}
